package com.atguigu.chaptar2

object $02_ClosePackage {
  def main(args: Array[String]): Unit = {
    val b = 3
    val func = (x:Int)=>x+b
    println(func(5))
  }
  def add(x:Int)={
    val a = 3
    val add2 =(y:Int)=>{
      x+a
    }
    add2(5)
  }


}
